/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.designpatterns.creational.builder;

/**
 *
 * @author BassonCJ
 */
public class JapaneseMealBuilder implements MealBuilder{
    private static BuilderFactory builderFactory = BuilderFactory.getInstance();    
    private MealFactory mealFactory = builderFactory.getMealFactory();
    private Meal meal;   
    
    public JapaneseMealBuilder(){
        meal = mealFactory.getMeal();
    }
    
    @Override
    public void buildDrink() {
        meal.setDrink("sake");
    }

    @Override
    public void buildMainCourse() {
        meal.setMainCourse("chicken teriyaki");
    }

    @Override
    public void buildSide() {
        meal.setSide("miso soup");
    }

    @Override
    public Meal getMeal() {
        return meal;
    }    
}
